package org.sucri.servlet.handler;

import org.sucri.floxs.servlet.User;
import org.sucri.floxs.servlet.RequestHandler;
import org.apache.commons.collections15.map.MultiKeyMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletException;
import javax.persistence.EntityManagerFactory;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: Wen Yu
 * Date: Aug 25, 2007
 * Time: 11:39:48 PM
 * To change this template use File | Settings | File Templates.
 */
public class UserInfoHandler extends RequestHandler$
{
  public UserInfoHandler(String page)
  {
    super(page, "userinfo");
  }
  public UserInfoHandler(MultiKeyMap<String, RequestHandler> s)
  {
    super(null, "userinfo", s);
  }

  public boolean processRequest(EntityManagerFactory emf,
                                User                 user,
                                HttpServletRequest   req,
                                HttpServletResponse  res)
      throws ServletException, IOException
  {
    res.getOutputStream().println("Current User");
    return true;
  }
}
